package com.ghost.alibabaghost.dao.mapper.sys;

import com.ghost.alibabaghost.dao.dataobject.sys.SysMenusDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yaolisheng
 * @version 1.0
 * @date 2022/1/15 07:58
 */
@Mapper
public interface SysMenusMapper {

    /**
     *
     * @return
     */
    List<SysMenusDO> getNodeTree();

    /**
     *
     * @param sysMenusDO
     * @return
     */
    Integer updateMenu(SysMenusDO sysMenusDO);

    /**
     *
     * @param sysMenusDO
     * @return
     */
    Integer insertMenu(SysMenusDO sysMenusDO);

    /**
     *
     * @param nodeId
     * @return
     */
    SysMenusDO queryByNodeId(@Param("nodeId") String nodeId);
}
